
const user = {
  state: {
    // token: getToken(),

    name: '',
    avatar: '',
    roleList: [],
    permissionList: []
  },
  mutations: {
    SET_NAME: (state, name) => {
      state.name = name
    },
    SET_AVATAR: (state, avatar) => {
      state.avatar = avatar
    },
    SET_ROLES: (state, roleList) => {
      state.roleList = roleList
    },
    SET_PERMISSIONS: (state, permissionList) => {
      state.permissionList = permissionList
    }
  }
}

export default user
